package org.cangku.dao;

import org.apache.ibatis.annotations.Param;
import org.cangku.entity.Linshi;

import java.util.List;

public interface LinShiDao {
    /*添加信息*/
    public void inert(Linshi linshi);
    /*根据单号获得改单号的所有数据*/
    public List<Linshi> queryByDanhao(String danhao);
    /*根据单号获得总价钱*/
    public double queryZongQian(String danhao);
    /*根据单号和商品id判断是否存在该商品*/
    public int cunzai(@Param("danhao") String danhao,@Param("cid") int cid);

    /*如果存在添加熟练修改总价前*/
    public void updateNumAndMoney(Linshi linshi);

    /*删除单个*/
    public void deleteOne(int id);
    /*删除多个*/
    public int deleteByDanhao(String danhao);

    /*判断单号是否存在*/
    public int cunzaidanhao(String danhao);

    /*根据订单号获得该订单的总数量*/
    public int getSumCountByDanHao(String dingdan);


}
